
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGBaseFunctions.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================

namespace
{

bool osgInitWrapper(const unsigned int argc, list pythonArgv)
{
   std::vector<char*> argv(argc);

   for ( unsigned int i = 0; i < argc; ++i )
   {
      argv[i] = extract<char*>(pythonArgv.pop());
   }

   return osg::osgInit(argc, &argv[0]);
}

}


// Module ======================================================================
void Export_src_pyste_BaseFunctions()
{
    def("osgInit", &osgInitWrapper);
    def("osgExit", &osg::osgExit);
}

